package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.OrdersCriteria;
import com.leo.ibatis.demo.domain.Orders;

public interface OrdersDao {

	void insert(Orders orders) throws DataAccessException;

	int update(Orders orders) throws DataAccessException;

	int delete(int orderid) throws DataAccessException;

	Orders select(int orderid) throws DataAccessException;

	List<Orders> list(OrdersCriteria ordersCriteria) throws DataAccessException;
	
	List<Orders> listOnPage(OrdersCriteria ordersCriteria) throws DataAccessException;
	
	int count(OrdersCriteria ordersCriteria) throws DataAccessException;

}
